﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MINERP.DAL;
using MINERP.DAL.InfoConfig;

namespace MINERP.BLL.InfoConfig
{
    public  class ProductTypeBLL
    {
        #region //Private Fields


        #endregion


        #region //Public Properties

        #endregion



        #region //Public Methods

        public List<tb_ProductType> GetProductTypeList()
        {
            return  ProductTypeDAL.GetProductTypeList();
        }

        public tb_ProductType GetProductTypeObj(int id)
        {
            return ProductTypeDAL.GetProductObj(id);
        }

        public tb_ProductType GetProductTypeObj(string name)
        {
            return ProductTypeDAL.GetProductObj(name);
        }

        public void Add(tb_ProductType obj)
        {
            ProductTypeDAL.Add(obj);        
        }
        public void Update()
        {
            ProductTypeDAL.Update();
        }
        public void Delete(tb_ProductType obj)
        {
            ProductTypeDAL.Delete(obj);
        }
        #endregion
    }
}
